export const mtableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  searchMenuSpan: 6,
  viewBtn: true,
  column: [
    {
      type: 'input',
      label: '类型(M表示厂商，V表示供应商)',
      prop: 'type',
      span: 12,
      display: false,
      hide: true,
      value: 'M'
    },
    {
      type: 'input',
      label: '名称',
      prop: 'name',
      span: 12,
      required: true,
      rules: [{ required: true, message: '名称必须填写' }],
      search: true
    },
    {
      type: 'input',
      label: '评价结果',
      prop: 'evaluateGrade',
      span: 12
    },
    {
      type: 'textarea',
      label: '厂商描述',
      prop: 'description',
      span: 24,
      display: true
    },
    {
      type: 'input',
      label: '厂商地址',
      prop: 'contactAddress',
      span: 24,
      search: true
    },
    {
      type: 'input',
      label: '联系人',
      prop: 'contactor',
      span: 12,
      search: true
    },
    {
      type: 'input',
      label: '联系电话',
      prop: 'contactTelephone',
      span: 12,
      search: true,
      width: 150
    },
    {
      type: 'input',
      label: '传真电话',
      prop: 'contactFaxno',
      span: 12,
      search: true
    },
    {
      type: 'input',
      label: '电子邮件',
      prop: 'contactEmail',
      span: 12
    },
    {
      type: 'input',
      label: '厂商主页',
      prop: 'weburl',
      span: 12
    },
    {
      type: 'input',
      label: '邮政编码',
      prop: 'contactZipcode',
      span: 12
    },
    {
      type: 'input',
      label: '开户银行',
      prop: 'bank',
      span: 12
    },
    {
      type: 'input',
      label: '开户帐号',
      prop: 'bankAccount',
      span: 12,
      width: 200
    },
    {
      type: 'input',
      label: '税号',
      prop: 'dutyParagraph',
      span: 12
    },
    {
      label: '附件信息',
      prop: 'uploadPage',
      type: 'input',
      formslot: true,
      slot: true,
      span: 24,
      hide: true
    },
    {
      prop: 'unid',
      span: 12,
      type: 'input',
      label: '唯一编码',
      rules: [],
      display: false,
      required: false,
      hide: true,
      value: ''
    }
  ]
}

export const vtableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  viewBtn: true,
  searchMenuSpan: 6,
  column: [
    {
      type: 'input',
      label: '类型(M表示厂商，V表示供应商)',
      prop: 'type',
      span: 12,
      display: false,
      hide: true,
      value: 'V'
    },
    {
      type: 'input',
      label: '名称',
      prop: 'name',
      span: 12,
      required: true,
      rules: [{ required: true, message: '名称必须填写' }],
      search: true
    },
    { type: 'input', label: '评价结果', prop: 'evaluateGrade', span: 12 },
    {
      type: 'textarea',
      label: '供应商描述',
      prop: 'description',
      span: 24,
      display: true,
      width: 200
    },
    {
      type: 'input',
      label: '地址',
      prop: 'contactAddress',
      span: 24,
      search: true
    },
    {
      type: 'input',
      label: '联系人',
      prop: 'contactor',
      span: 12,
      search: true
    },
    { type: 'input', label: '联系电话', prop: 'contactTelephone', span: 12, search: true },
    {
      type: 'input',
      label: '传真电话',
      prop: 'contactFaxno',
      span: 12,
      search: true
    },
    { type: 'input', label: '电子邮件', prop: 'contactEmail', span: 12 },
    {
      type: 'input',
      label: '供应商主页',
      prop: 'weburl',
      span: 12,
      width: 200
    },
    { type: 'input', label: '邮政编码', prop: 'contactZipcode', span: 12 },
    {
      type: 'input',
      label: '开户银行',
      prop: 'bank',
      span: 12
    },
    {
      type: 'input',
      label: '开户帐号',
      prop: 'bankAccount',
      span: 12,
      width: 200
    },
    {
      type: 'input',
      label: '税号',
      prop: 'dutyParagraph',
      span: 12
    },
    {
      label: '附件信息',
      prop: 'uploadPage',
      type: 'input',
      formslot: true,
      slot: true,
      span: 24,
      hide: true
    },
    {
      prop: 'unid',
      span: 12,
      type: 'input',
      label: '唯一编码',
      rules: [],
      display: false,
      required: false,
      hide: true,
      value: ''
    }
  ]
}

export const tableOption = {}
